File: check_64bit_ulong.inc

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (28 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download
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
26
27
28
# ==== Purpose ====
#
# Check if the platform uses 64 bits for ulong.
#
# Note: Windows platforms can have 32 bit ulong even if the machine is
# 64 bit. So be sure to choose the correct condition for your test!
# Tests that check the range of system variables whose maximum is
# ULONG_MAX will depend on the ulong size, rather than the machin word
# size.
#
# ==== Usage ====
#
# --source include/check_64bit_ulong.inc
# # Now $have_64bit_ulong is 0 if ulong is 32 bits, and 1 if ulong is 64 bits.
#
# ==== See also ====
#
# - have_32bit.inc/have_64bit.inc/check_32bit_machine.inc
# - have_64bit_ulong.inc/have_64bit_ulong.inc/check_32bit_ulong.inc

--disable_query_log
--disable_warnings
--let $_c64u_min_examined_row_limit_save = `SELECT @@session.min_examined_row_limit`
SET @@session.min_examined_row_limit = 4294967296;
--let $have_64bit_ulong = `SELECT @@session.min_examined_row_limit > 4294967295`
eval SET @@session.min_examined_row_limit = $_c64u_min_examined_row_limit_save;
--enable_warnings
--enable_query_log