Skip to content

Instantly share code, notes, and snippets.

//gcc float_code.c -o float_code
//gcc float_code.c -o float_code -ffast-math
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <float.h>
void print_float_type(float f) {
switch (fpclassify(f)) {
@rougier
rougier / nano.el
Created October 2, 2020 17:44
A very minimal emacs configuration
;; nano.el -- A very minimal emacs
;; Usage: emacs -q -l nano.el
;;
;; Copyright (C) 2020 Nicolas .P Rougier
;;
;; Author: Nicolas P. Rougier <[email protected]>
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or