This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/stdtypes.h> | |
#include <stdbool.h> | |
#include <mach/boolean.h> | |
#include <sys/errno.h> | |
#include <stdlib.h> | |
#include <dispatch/dispatch.h> | |
#if !defined(MAC_OS_X_VERSION_10_12) || \ | |
(MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; references: | |
; https://branchfree.org/2018/05/22/bits-to-indexes-in-bmi2-and-avx-512/ | |
; https://lemire.me/blog/2018/03/08/iterating-over-set-bits-quickly-simd-edition/ | |
; http://0x80.pl/notesen/2019-01-05-avx512vbmi-remove-spaces.html | |
align 64 | |
; RCX : number of quadword to convert | |
; RSI : source bit array | |
; RDI : destination index array | |
bitmap_decode_ctz: | |
jrcxz .all_zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* User Settings | |
*/ | |
// Always use current week. How many weeks past that to check? | |
const WEEKS_AHEAD = 0; | |
// Assume each day starts, ends at the same times | |
const WORK_START_HR = 9; | |
const WORK_END_HR = 18; |
OlderNewer