<commit_before>/*
 * Copyright 2014, NICTA
 *
 * This software may be distributed and modified according to the terms of
 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
 * See "LICENSE_BSD2.txt" for details.
 *
 * @TAG(NICTA_BSD)
 */

#include <platsupport/io.h>
#include <stdio.h>
#include <stdlib.h>

#define _printf(...) printf(__VA_ARGS__)

#define RESOURCE(op, id) ps_io_map(&(op->io_mapper),  (uintptr_t) id##_PADDR, id##_SIZE, 0, PS_MEM_NORMAL)

#define MAP_IF_NULL(op, id, ptr)               \
    do {                                         \
        if(ptr == NULL){                        \
            ptr = RESOURCE(op, id);             \
        }                                        \
    }while(0)


#define MAPCHECK(a, v) assert(((uintptr_t)(a) & 0xfff) == (v))

<commit_msg>libplatsupport: Remove unused macro.<commit_after>/*
 * Copyright 2014, NICTA
 *
 * This software may be distributed and modified according to the terms of
 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
 * See "LICENSE_BSD2.txt" for details.
 *
 * @TAG(NICTA_BSD)
 */

#include <platsupport/io.h>
#include <stdio.h>
#include <stdlib.h>

#define _printf(...) printf(__VA_ARGS__)

#define RESOURCE(op, id) ps_io_map(&(op->io_mapper),  (uintptr_t) id##_PADDR, id##_SIZE, 0, PS_MEM_NORMAL)

#define MAP_IF_NULL(op, id, ptr)               \
    do {                                         \
        if(ptr == NULL){                        \
            ptr = RESOURCE(op, id);             \
        }                                        \
    }while(0)
{'fraction_non_alphanumeric': 0.12848101265822784, 'fraction_numerical': 0.010759493670886076, 'mean_word_length': 1.808170515097691, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '750343', 'n_tokens_mistral': 528, 'n_tokens_neox': 503, 'n_words': 129}