Debian Codegraph @

doc/src/intrinsics/bit/blt.md

raw
1 # blt(x, y): Bitwise Less Than
2
3 Bitwise less than.
4
5 ## Declaration
6
7 ### Syntax
8
9 ```fortran
10 retval = blt(x, y);
11 elemental logical function btt(x, y)
12 ```
13
14 ### Arguments
15
16 `x` and `y` are integer input values. Both input values are of same kind.
17
18 ### Return values
19
20 The return value is of type logical and of the default kind.
21
22 ## Description
23
24 `blt(x, y)` calculates if one integer input values is bitwise less than the
25 other.
26
27 ## Types
28
29 Supported input types is integer of 32 bit and 64 bit size.
30
31 ```
32 interface blt
33 module procedure blt32, blt64
34 end interface
35
36 contains
37
38 interface
39 elemental logical function blt32(x, y)
40 integer(int32), intent(in) :: x, y
41 end function
42
43 elemental logical function blt64(x, y)
44 integer(int64), intent(in) :: x, y
45 end function
46 end interface
47 ```
48
49 ## Examples
50
51 ```fortran
52 program intrinsics_blt
53 implicit none
54 print *, blt(10, 4)
55 print *, blt(10, -4)
56 end program
57 ```
58
59 **Result:**
60
61 ```
62 false
63 true
64 ```
65
66 ## See Also
67
68 [bge](bge.md), [ble](ble.md), [bgt](bgt.md).