File: crc.m4

package info (click to toggle)
coreutils 9.7-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 67,780 kB
  • sloc: ansic: 243,477; sh: 29,063; perl: 7,908; yacc: 1,858; makefile: 196; python: 47; sed: 16
file content (25 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# crc.m4
# serial 4
dnl Copyright (C) 2024-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.

# For use by maintainer's after gl_EARLY in configure.ac.
AC_DEFUN([gl_DISABLE_CRC_SLICE_BY_8],
[
  gl_crc_slice_by_8=no
])

AC_DEFUN([gl_CRC_SLICE_BY_8],
[
  AC_MSG_CHECKING([whether to enable CRC slice-by-8 algorithm])
  if test x"$gl_crc_slice_by_8" != x"no"; then
      AC_MSG_RESULT([yes])
      AC_DEFINE([GL_CRC_SLICE_BY_8], [1],
                [Define to get faster but larger CRC32 operation.])
  else
      AC_MSG_RESULT([no])
  fi
])