autoconfig
cgi
cross_compile
flex
gdb_pretty_print
.gitignore
1st_day_of_month.cpp
alternatice_bracket.c
ascii_injection.py
ascii_nn_input_helper.py
bind_test.sh
blumba.html
bootrap.html
brython_hw.html
c.php
c_old_argument_notation.c
cnn.c
comp.c
conditional_const.c
const.c
cpp_regex_error.cpp
current_year.cpp
dda2.cpp
dog.jpg
dog2.jpg
dpt.py
dropdown.html
else_while.c
example.m4
extension_cut.Makefile
fddl.js
fizzbuzz.f90
for_ctags.cpp
format.py
free_null.c
gcc_include_next.c
gdb_graph.c
getopt_test.c
gnu_decimals.c
gnu_history.c
17 lines
351 B
C
17 lines
351 B
C
// @COMPILECMD gcc $@ -o $*.out
|
|
#define _OPEN_SYS_ITOA_EXT
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
signed main() {
|
|
_Decimal32 d = 1;
|
|
for (int i = 0; i < sizeof(_Decimal32); i++) {
|
|
char c = *( ((char *)(&d)) + i );
|
|
for(int h = 0; h < 8; h++){
|
|
fputs(((c & 0b10000000) ? "1" : "0"), stdout);
|
|
c <<= 1;
|
|
}
|
|
fputs(".", stdout);
|
|
}
|
|
puts("");
|
|
}
|