|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
|||||||||||||||||||||||||||||||||||||||||||||||
2005年03月29日(火) 旧暦 [n年日記] [更新:"2005/03/29 23:29:13"]#1 [Emacs] Power of 2 to n(defun powerof (max) " test" (interactive n) (setq m 1) (setq i 1) (message (format "begin")) (while ( < i max ) (setq m (* m 2)) (message (format "%d %d" i m) (setq i (+ i 1)) )))を評価した後に (powerof 32)を評価すると、 *Message* バッファに、 begin 1 2 2 4 ... 22 4194304 23 8388608 24 16777216 25 33554432 26 67108864 27 134217728 28 -268435456 29 0 30 0のような表示が残る。28 bit のところであふれないようにするには ? src/lisp.h-#define EMACS_INT long src/lisp.h:#define BITS_PER_EMACS_INT BITS_PER_LONG src/lisp.h-#endifこの辺かなぁ。ということは OS 依存 ? これを long long にすると ..? src/lisp.h-#ifndef VALBITS src/lisp.h:#define VALBITS (BITS_PER_EMACS_INT - GCTYPEBITS) src/lisp.h-#endifこれは ? やはり 64 bit OS が要るということでせうか。 ( つっこみ )
|
最近の日記 2024年05月06日 ・py-setuptools (python 3.11.9) ・make release took 1 hours and 10 min ・qemu invocation for 10.99.10 2024年05月05日 ・Windows 10 version ・serial connection ・bc bench 2024年05月04日 ・Trial on 10.99.10 ・another version (later trial) to succeed 2024年04月29日 ・dkim 2024年03月10日 ・停電 (瞬電) | ||